package cn.com.cloudpioneer.evaluate.utils;

import java.io.Serializable;

/**
 * @auther maruikai
 * @create 2023/5/19-11:12
 */
public class CustomException extends Exception implements Serializable {
    protected int code;
    protected String message;

    public CustomException() {
        this.code = ReturnCode.RC502.getCode();
        this.message = ReturnCode.RC502.getMessage();
    }

    public CustomException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
